package Arbori;


public class ArboreFunctional {
	protected Nod radacina;
	
	public ArboreFunctional(Nod radacina){
		this.radacina=radacina;
	}
	
	public double calculezValoare(double x){
		radacina.x=x;
		return radacina.calcul();
	}
	
	public String toString(){
		return radacina.toString();
	}
	
	public String derivata(){
		return radacina.derivare();
	}
	
	public double calculezDerivata(double x){
		radacina.setX(x);
		return radacina.calculDerivata();
	}
	

}
